package cn.edu.xmu.oomall.payment.model.vo;

import cn.edu.xmu.oomall.payment.constant.Constants;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 支付通知传入参数
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class PaymentNotifyVo {
    @ApiModelProperty(value = "通知ID")
    private Long id;
    @ApiModelProperty(value = "通知创建时间")
    @JsonFormat(pattern = Constants.DATE_TIME_FORMAT, timezone = "GMT+8")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "通知类型")
    private String eventType;
    @ApiModelProperty(value = "通知简要说明")
    private String summary;
    @ApiModelProperty(value = "通知数据类型")
    private String resourceType;
    @ApiModelProperty(value = "交易渠道id")
    private PaymentResourceVo resource;
}
